﻿
package com.victim.snake.room
{
	import flash.utils.Dictionary;

	//房间队伍操作类
	public class Groups {
		
		public var groups:Dictionary=new Dictionary();
		
		//构造函数 
		public function Groups(){
			
		}
		
		//取得队伍
		public function getGroupById(groupId:int):Group{
			if(groups[groupId]==undefined){
				groups[groupId]=new Group(groupId);
			}
			return groups[groupId];
		}
	}
}